<%--
  Created by IntelliJ IDEA.
  User: 14503
  Date: 2020/10/14
  Time: 22:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>自定义页面</title>
    <script src="${pageContext.request.contextPath }/js/jquery-1.8.3.js"></script>
</head>
<body>

<div id="content" style="text-align: center">

</div>

<script>
    $(function () {
        var $webName="${pageContext.request.contextPath}";
        var cid = getQueryVariable('cid')
        $.post($webName+"/zc/findZcByCid?cid="+cid,{},function (mdata) {
            $("#content").html(mdata.data.cremark);
        })


    })
    function getQueryVariable(variable)
    {
        var query = window.location.search.substring(1);
        var vars = query.split("&");
        for (var i=0;i<vars.length;i++) {
            var pair = vars[i].split("=");
            if(pair[0] == variable){return pair[1];}
        }
        return(false);
    }
</script>
</body>
</html>
